package com.train.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.train.common.ServerResponse;
import com.train.service.ICourseTypeService;

@Controller
@RequestMapping("/courseType/")
public class CourseTypeController {

	@Autowired
	private ICourseTypeService courseTypeService;
	
	//查询所有上架的课程类型
	@RequestMapping("courseType.do")
	@ResponseBody
	public ServerResponse selectCourseTypeList(){
		return courseTypeService.selectCourseTypeList();
	}
}
